package au.com.handsunited.dao.hibernate;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import au.com.handsunited.dao.LanguageDAO;
import au.com.handsunited.model.language.Language;

/**
 *
 * @author arunda
 */
public class LanguageDAOHibernate extends GenericDAOHibernate<Language, Long>
		implements LanguageDAO {


	private static Logger logger = LoggerFactory.getLogger(LanguageDAOHibernate.class);


	/**
	 *
	 */
	public LanguageDAOHibernate() {
		super();
	}

	/**
	 * @see au.com.handsunited.dao.LanguageDAO#getAllLanguages()
	 */
	@Override
	public List<Language> getAllLanguages() {
		List<Language> languages = getHibernateTemplate().find("from Language");
		return languages;
	}

}
